<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>初始化网站基本信息</title>
	<link rel="stylesheet" href="">
	<script type="text/javascript" src="../js/jquery-2.1.1.js"></script>
</head>
<body>
	<script type="text/javascript">
	$("document").ready(function(){
		//alert(1)；
	
		//inAjax:判断是否是本页面发出来的请求
		var url = "server.php?inAjax=1&do=checkMember&username=ericwolf";
		var data={};
		$.get(url,data, function(res) {
			/*optional stuff to do after success */
			var jsonObj = eval("(" + res + ")");
			$("#username").val(jsonObj.username);
			$("#groupname").val(jsonObj.groupname);
			$("#uid").val(jsonObj.uid);
		});
	});
	</script>

	<div>

		用户名：<input type="text" name="username" id="username"/>
		会员组：<input type="text" name="groupname" id="groupname"/>
		UID：<input type="text" name="uid" id="uid"/>
	</div>
</body>
</html>